<script setup lang="ts">
import { reqArticlePage } from "@/apis/article";
import { ArticleItem } from "@/types/article";
import { onMounted, ref } from "vue";

const articleList = ref<ArticleItem[]>([]);

const getArticlePage = async () => {
  const res = await reqArticlePage({
    page: 1,
    pageSize: 10,
  });
  articleList.value = res.data.rows;
  console.log(res.data.rows);
};

onMounted(() => {
  getArticlePage();
});
</script>

<template>BLOG</template>

<style scoped lang="scss"></style>
